<template>
    <div id='' class='right_tree_view'>
        <Tree ref="treeRef" :data="treeList" show-checkbox></Tree>
    </div>
</template>
<script>
export default {
    name: '',
    props: [''],
    data() {
        return {
            treeList: [],
            list: [],//两棵树勾选的数据
        };
    },
    components: {},
    computed: {},
    beforeMount() { },
    mounted() { },
    methods: {
        setTreeList(list) {
            this.treeList = list;
        },

        // 获取选中项
        getCheckList() {
            let arr = [];
            this.$refs.treeRef.getCheckedAndIndeterminateNodes().forEach(item => {
                arr.push({ id: item.id, type: item.type })
            });
            return arr;
        },
    },
    watch: {}
}
</script>
<style lang='less' scoped>
.right_tree_view {
    width: 70%;
}
</style>